/**
 * CHMsgContentListener.mm
 * @author Nick Kreeger <nick.kreeger@park.edu>
 *
 * Implement a class to listen to message events and 
 * dispatch them to any higher UI elmements that 
 * have registered with us.
 */

#import "CHMsgContentListener.h"

NS_IMPL_ISUPPORTS1(CHMsgContentListener, nsISupports);

CHMsgContentListener::CHMsgContentListener()
{
  mListeners = [[NSMutableArray alloc] init];
}

CHMsgContentListener::~CHMsgContentListener()
{
  [mListeners release];
}

void 
CHMsgContentListener::AddListener(id <CHMsgContentListener> aListener)
{
  [mListeners addObject:aListener];
}

void 
CHMsgContentListener::RemoveListener(id <CHMsgContentListener> aListener)
{
  [mListeners removeObject:aListener];
}
